package net.sf.nlp.ltag.persistence;

import net.sf.nlp.ltag.util.LTAG;

public class PersistenceFactory
{
	public static LTAGPersistence createPersistence()
	{
		LTAGPersistence persistence = null;
		
		if ("ACCESS".equals(LTAG.ltagProperties.getProperty("PERSISTENCE_TYPE")))
			persistence = new AccessPersistence();
		else if ("TEXT".equals(LTAG.ltagProperties.getProperty("PERSISTENCE_TYPE")))
			persistence = new TextPersistence();
		
		return persistence;
	}
}
